package five;

public class GraphicsAreaTest {
    public static void main(String[] args) {
        Triangle t=new Triangle(2,3);
        Rectangle r=new Rectangle(4,5);
        Circle c=new Circle(3);
        Shape[] s=new Shape[]{t,r,c};
 
        for (int i=0;i<s.length;i++){
            s[i].calArea();
        }
 
    }
}